<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/x1Common.css"/>
    <script src="js/x1Common.js"></script>
    <script src="js/common/main.js"></script>
    <script src="js/common/tool.js"></script>
    <script type="text/javascript">
    function logout() {
            $.ajax({
                url: "../authen/logout.do",
                async: false,
                type : "post",
                dataType : "json",
                success:function(d){
                	if(d.success){
						$(".XCent").removeClass("xCentShow");
	        			$(".XLogin").addClass("xCentShow");
	        			
                    	var fromUrl = getSearchParam('redirectUrl');//是从fromUrl来到登录界面的，所以fromUrl应该设置
						if(fromUrl != null && fromUrl != ''){
							//alert("退出登录失败11")
    						window.location.href = fromUrl;
						} else {//如果找不到上一张页面，则做浏览器退页操作
							//alert("退出登录失败22")
							window.location.href = 'index.html';
						}
                    }
                    else{
                    	alert("退出登录失败")
                	}
                }
            });
    	}
    </script>
</head>
<body>
    <div class="xHBox1 clearFix">
    <div class="xBL">
        <h2>成功企业家俱乐部欢迎您的加入！</h2>
    </div>
    <ul class="xBR">
   <!-- <li class="XLogin xCentShow"> -->
        <li class="XLogin">
            <a class="Xa" href="gApply.html">注册</a>
            <i>|</i>
            <a href="login.html">登录</a>
        </li>
        <li class="XCent">
            <a class="Xa" href="javascript:;" id="userRealName"></a>
            <i>|</i>
            <a href="gCenter.html">个人中心</a>
            <i>|</i>
            <a href="javascript:;" onclick="javascript:logout();">退出登陆</a>
        </li>
    </ul>
</div>
</body>
</html>